package com.study.hot.jetpack.demo_shopping.binding

import android.widget.EditText
import androidx.databinding.BindingAdapter
import com.study.hot.jetpack.demo_shopping.common.listener.SimpleWatcher

/**
 * <pre>
 *     author : fauks
 *     time   : 2020/03/26
 *     desc   :
 * </pre>
 */
@BindingAdapter("addTextChangedListener")
fun addTextChangedListener(editText: EditText, simpleWatcher: SimpleWatcher) {
    editText.addTextChangedListener(simpleWatcher)
}

